<html>
<head><meta charset="utf-8"><title>Strange issue with VSCode + RA + Samba + Windows client · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Strange.20issue.20with.20VSCode.20.2B.20RA.20.2B.20Samba.20.2B.20Windows.20client.html">Strange issue with VSCode + RA + Samba + Windows client</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="169746256"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Strange%20issue%20with%20VSCode%20%2B%20RA%20%2B%20Samba%20%2B%20Windows%20client/near/169746256" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Strange.20issue.20with.20VSCode.20.2B.20RA.20.2B.20Samba.20.2B.20Windows.20client.html#169746256">(Jul 06 2019 at 01:50)</a>:</h4>
<p>So I decided to give VScode + RA a try and it felt really great compared to VSCode + RLS for <code>rustc</code> but there was an issue which made RA unusable...</p>
<p>...You see I used a Windows 10 laptop for VSCode + RA but the files I edit are on a mapped network share through samba on an Ubuntu Server. </p>
<p>Strangely, when I use RA on VSCode with this setup the files become unreachable on VSCode but also via File Explorer on Windows itself. If I then close VSCode the issue disappears and I can use the mapped share again through File Explorer.</p>
<p>This setup has worked fine using VSCode + the RLS extension...</p>
<p>Maybe this is a latency issue and RA is maybe constantly checking files? But it seems strange that this should be an issue since the server is in the local network and connected with 1gbps cat6.. maybe it's a samba issue? I'm trying to install RA on VSCode remote to see if I can get rid of the issue that way...</p>



<a name="169748003"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Strange%20issue%20with%20VSCode%20%2B%20RA%20%2B%20Samba%20%2B%20Windows%20client/near/169748003" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Strange.20issue.20with.20VSCode.20.2B.20RA.20.2B.20Samba.20.2B.20Windows.20client.html#169748003">(Jul 06 2019 at 02:40)</a>:</h4>
<p>So I tried sshfs instead and the issue just went away seemingly</p>



<a name="169748010"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Strange%20issue%20with%20VSCode%20%2B%20RA%20%2B%20Samba%20%2B%20Windows%20client/near/169748010" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Strange.20issue.20with.20VSCode.20.2B.20RA.20.2B.20Samba.20.2B.20Windows.20client.html#169748010">(Jul 06 2019 at 02:41)</a>:</h4>
<p>So this might be a samba issue indeed</p>



<a name="169752987"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Strange%20issue%20with%20VSCode%20%2B%20RA%20%2B%20Samba%20%2B%20Windows%20client/near/169752987" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Strange.20issue.20with.20VSCode.20.2B.20RA.20.2B.20Samba.20.2B.20Windows.20client.html#169752987">(Jul 06 2019 at 05:27)</a>:</h4>
<p>It seems like notify falls back to polling on samba: <a href="https://github.com/passcod/notify/issues/64" target="_blank" title="https://github.com/passcod/notify/issues/64">https://github.com/passcod/notify/issues/64</a></p>



<a name="169766621"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Strange%20issue%20with%20VSCode%20%2B%20RA%20%2B%20Samba%20%2B%20Windows%20client/near/169766621" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Strange.20issue.20with.20VSCode.20.2B.20RA.20.2B.20Samba.20.2B.20Windows.20client.html#169766621">(Jul 06 2019 at 13:08)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> ah; should I/you file an issue somewhere (RA repo, notify... (tho you know the notify stuff better))</p>



<a name="169769320"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Strange%20issue%20with%20VSCode%20%2B%20RA%20%2B%20Samba%20%2B%20Windows%20client/near/169769320" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Strange.20issue.20with.20VSCode.20.2B.20RA.20.2B.20Samba.20.2B.20Windows.20client.html#169769320">(Jul 06 2019 at 14:32)</a>:</h4>
<p>I'd say the issue won't be too actionable, because we are in the "we'll rewrite this anyway soon" state. I think we need to wait and see how notify story unfolds: they are in the process of big rewrite which might completely change the set of bugs</p>



<a name="169773451"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Strange%20issue%20with%20VSCode%20%2B%20RA%20%2B%20Samba%20%2B%20Windows%20client/near/169773451" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Strange.20issue.20with.20VSCode.20.2B.20RA.20.2B.20Samba.20.2B.20Windows.20client.html#169773451">(Jul 06 2019 at 16:36)</a>:</h4>
<p>Ah; I'll use sshfs for now then <span aria-label="slight smile" class="emoji emoji-1f642" role="img" title="slight smile">:slight_smile:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>